package com.heima.controller;

import com.heima.pojo.Business;
import com.heima.service.BusinessService;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 赵超
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vm-service/businessType")
public class BusinessController {
    private final BusinessService businessService;

    @GetMapping
    public List<Business> list() {
        return businessService.list();
    }
}
